<?php

namespace App\Http\Model;

use Illuminate\Foundation\Auth\User as Authenticatable;

class Admin_user extends Authenticatable
{
    protected $table = 'admin_user';
    protected $primaryKey = 'id';

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'username', 'password','phone','pic','created_at',
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [

    ];
    public $timestamps = false;

    /**
     * 属于该用户的身份。
     */
    public function roles()
    {
        return $this->belongsToMany('App\Http\Model\Role');
    }
}
